package com.gitee.dolt.utils;

import java.util.concurrent.Callable;

/**
 * @author LYH
 */
public class IgnoreErrorUtils {
    public <T> T ignoreError(Callable<T> callable) {
        try {
            return callable.call();
        } catch (Throwable e) {
            return null;
        }
    }
}
